﻿using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;

using Whoever.Health.Business.Entities;

namespace Whoever.Health.DataAccess.Configuration
{
    internal class ContactStatusConfiguration : EntityTypeConfiguration<ContactStatus>
    {
        public ContactStatusConfiguration()
        {
            HasKey(e => e.Id);

            Property(e => e.Id)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            Property(e => e.Description)
                .HasMaxLength(60)
                .IsUnicode(false);

            ToTable("ContactStatus", "dbo");
        }
    }
}
